package cn.iocoder.yudao.module.resource.controller.admin.usertimebalance.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 用户时长余额新增/修改 Request VO")
@Data
public class UserTimeBalanceSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3575")
    private String id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19948")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "总获得时长(毫秒)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总获得时长(毫秒)不能为空")
    private Long totalTimeMs;

    @Schema(description = "剩余时长(毫秒)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "剩余时长(毫秒)不能为空")
    private Long remainingTimeMs;

    @Schema(description = "扩展")
    private String extension;

}